The Tab View Component > FTabView.removeListener()

 

FTabView.removeListener()

Availability

Flash Player 6.

Usage

myTab_tbv.removeListener (listener)

Parameters

listener The listener Object which should be removed from the list of Objects listening for events from the component.

Returns


A Boolean value indicating whether the listener was successfully removed.

Description

This method removes the specified object from the list of Objects listening for events from the component.

 

Example

The tab_addListener.fla example file contains an example of using this method.

The following code adds for tabs to the components, and then adds a removes a listener, which listens for the onSelect event.

	var tabs = ["Tab 1","Tab 2","Tab 3","Tab 4"];
	myTab_tbv.setDataProvider(tabs);

	var listener = {};
	listener.onSelect = function(obj,item){
	   trace("Tab Selected: "+item.label);
	}
	myTab_tbv.addListener(listener);
	myTab_tbv.removeListener(listener);

 

See also

FTabView.addListener()